class CreateUnits < ActiveRecord::Migration[5.0]
  def change
    create_table :units do |t|
      t.string :name
      t.integer :level
      t.text :remark

      t.references :baba_unit,index:true

      t.timestamps
    end
  end
end
